package com.fenqing.comics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fenqing.comics.commons.BaseEntity;
import com.fenqing.comics.enums.CrawlerTaskHistoryEnums;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author fenqing
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_crawler_task_history")
public class CrawlerTaskHistoryEntity extends BaseEntity {

    @TableField("source_id")
    private Long sourceId;

    @TableField
    private CrawlerTaskHistoryEnums.Type type;

    @TableField
    private CrawlerTaskHistoryEnums.Status status;

    @TableField("have_update")
    private Boolean haveUpdate;

    @TableField
    private LocalDateTime time;

    @TableField("next_time")
    private LocalDateTime nextTime;

    @TableField
    private String ext;
}
